import java.util.Scanner;

public class demo01 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入小王的性别(男||女)：");
        char a = scanner.next().charAt(0);
        System.out.println("请输入小张的性别（男||女）：");
        char b = scanner.next().charAt(0);
        if (a != b){
            System.out.println("恭喜，你们可以结婚！！！");
        }else {
            System.out.println("对不起，你们不能结婚");
        }
    }
}
